cloudprint: Make compile without warnings
authorBenjamin Otte <otte@redhat.com>
Tue, 27 Oct 2020 15:43:34 +0000 (16:43 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 27 Oct 2020 15:43:34 +0000 (16:43 +0100)
modules/printbackends/gtkprintbackendcloudprint.c

index f347fc433971ff8afc55ce230ecc9bbb989206aa..bc48ba4846e094976ce54facd002c4ae393d08fd 100644 (file)
@@ -124,8 +124,8 @@ g_io_module_unload (GIOModule *module)
 char **
 g_io_module_query (void)
 {
-  char *eps[] = {
-    GTK_PRINT_BACKEND_EXTENSION_POINT_NAME,
+  char * eps[] = {
+    (char *) GTK_PRINT_BACKEND_EXTENSION_POINT_NAME,
     NULL
   };
 
@@ -919,7 +919,7 @@ cloudprint_printer_get_options (GtkPrinter           *printer,
   /* How many document pages to go onto one side of paper. */
   option = gtk_printer_option_new ("gtk-n-up", _("Pages per _sheet:"), GTK_PRINTER_OPTION_TYPE_PICKONE);
   gtk_printer_option_choices_from_array (option, G_N_ELEMENTS (n_up),
-                                        (char **) n_up, (char **) n_up /* FIXME i18n (localised digits)! */);
+                                        n_up, n_up /* FIXME i18n (localised digits)! */);
   gtk_printer_option_set (option, "1");
   gtk_printer_option_set_add (set, option);
   g_object_unref (option);